package cn.ctodb.mall.goods.service.dto;


import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;
import cn.ctodb.mall.goods.domain.enumeration.IsCheck;
import cn.ctodb.mall.goods.domain.enumeration.IsCheck;

/**
 * A DTO for the Category entity.
 */
public class CategoryDTO implements Serializable {

    private Long id;

    private String catName;

    private String catCode;

    private String keywords;

    private String catDesc;

    private Integer sortOrder;

    private String templateFile;

    private String measureUnit;

    private IsCheck showInNav;

    private String style;

    private IsCheck isShow;

    private Integer grade;

    private String icon01;

    private Long parentId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }
    public String getCatCode() {
        return catCode;
    }

    public void setCatCode(String catCode) {
        this.catCode = catCode;
    }
    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }
    public String getCatDesc() {
        return catDesc;
    }

    public void setCatDesc(String catDesc) {
        this.catDesc = catDesc;
    }
    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }
    public String getTemplateFile() {
        return templateFile;
    }

    public void setTemplateFile(String templateFile) {
        this.templateFile = templateFile;
    }
    public String getMeasureUnit() {
        return measureUnit;
    }

    public void setMeasureUnit(String measureUnit) {
        this.measureUnit = measureUnit;
    }
    public IsCheck getShowInNav() {
        return showInNav;
    }

    public void setShowInNav(IsCheck showInNav) {
        this.showInNav = showInNav;
    }
    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }
    public IsCheck getIsShow() {
        return isShow;
    }

    public void setIsShow(IsCheck isShow) {
        this.isShow = isShow;
    }
    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }
    public String getIcon01() {
        return icon01;
    }

    public void setIcon01(String icon01) {
        this.icon01 = icon01;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long categoryId) {
        this.parentId = categoryId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        CategoryDTO categoryDTO = (CategoryDTO) o;

        if ( ! Objects.equals(id, categoryDTO.id)) { return false; }

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "CategoryDTO{" +
            "id=" + id +
            ", catName='" + catName + "'" +
            ", catCode='" + catCode + "'" +
            ", keywords='" + keywords + "'" +
            ", catDesc='" + catDesc + "'" +
            ", sortOrder='" + sortOrder + "'" +
            ", templateFile='" + templateFile + "'" +
            ", measureUnit='" + measureUnit + "'" +
            ", showInNav='" + showInNav + "'" +
            ", style='" + style + "'" +
            ", isShow='" + isShow + "'" +
            ", grade='" + grade + "'" +
            ", icon01='" + icon01 + "'" +
            '}';
    }
}
